ComponentOne Data Source for Entity Framework
C1.LiveLinq.Indexing Namespace / IndexCollection<T> Class / Find Method / Find<TKey>(Expression<Func<T,TKey>>) Method
The type of the index key.
Key selector expression of an index, see IndexDefinition<T>.KeySelector.

In This Topic
    Find<TKey>(Expression<Func<T,TKey>>) Method
    In This Topic
    Finds an index in the collection by its key selector.
    Syntax
    'Declaration
     
    
    Public Overloads Shadows Function Find(Of TKey)( _
       ByVal keySelector As System.Linq.Expressions.Expression(Of Func(Of T,TKey)) _
    ) As Index(Of T,TKey)
    public new Index<T,TKey> Find<TKey>( 
       System.Linq.Expressions.Expression<Func<T,TKey>> keySelector
    )

    Parameters

    keySelector
    Key selector expression of an index, see IndexDefinition<T>.KeySelector.

    Type Parameters

    TKey
    The type of the index key.

    Return Value

    An index with the given key selector, if it is found; otherwise, null.
    See Also